<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    let array = new Array()
    for(i = 0;i<10;i++){
        array[i]=i
    }
   console.log(array)
    array.splice(2,2)
    console.log(array)



</script>
</html>